home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Games #12
/
GEGA012.iso
/
Jogos de Azar
/
pokersuperstars.swf
/
scripts
/
DefineSprite_19_loading
/
frame_1
/
DoAction.as
Wrap
Text File
|
2006-01-17
|
679b
|
21 lines
function loadedIndicatorFrame()
{
var _loc2_ = int(_parent.getBytesLoaded() / _parent.getBytesTotal() * 65) + 2;
if(_loc2_ - lastFrame > 4)
{
lastFrame += 4;
loadedText = int(_parent.getBytesTotal() / 1024 * (lastFrame - 2) / 65) + "kb of " + int(_parent.getBytesTotal() / 1024) + "kb";
}
else if(_loc2_ - lastFrame > 0)
{
lastFrame++;
loadedText = int(_parent.getBytesLoaded() / 1024) + "kb of " + int(_parent.getBytesTotal() / 1024) + "kb";
}
else
{
loadedText = int(_parent.getBytesLoaded() / 1024) + "kb of " + int(_parent.getBytesTotal() / 1024) + "kb";
}
return lastFrame;
}
lastFrame = 1;